import { bannerList} from '../request/api'
const state = {
    bannerlist:[]
}
const getters = {
    getBannerList(state) {
        return state.bannerlist
    }
}
const mutations = {
    REQ_BANNERLIST(state, payload) {
        state.bannerlist = payload
    }
}
const actions = {
   async getBannerAction({commit}) {
        let res = await bannerList({
            istree:1
        })
        commit('REQ_BANNERLIST',res.list)
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}